package com.westos.userauth.dao.impl;

import com.westos.userauth.dao.PartyRoleDao;
import com.westos.userauth.dao.mybatis.PartyRoleDAO;
import com.westos.userauth.domain.PartyRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
//卢梓浩

@Service
public class MybatisPartyRoleDao implements PartyRoleDao {
    @Autowired
    private PartyRoleDAO partyRoleDAO;

    @Override
    public int deletePartyRoleByPartyId(String partyId) {
        return partyRoleDAO.deletePartyRoleByPartyId(partyId);
    }

    @Override
    public int insertPartyRole(PartyRole partyRole) {
        return partyRoleDAO.insertPartyRole(partyRole);
    }

    @Override
    public int deletePartyRole(String roleTypeId) {
        return partyRoleDAO.deletePartyRole(roleTypeId);
    }

    @Override
    public PartyRole queryPartyRoleById(String roleTypeId) {
        return partyRoleDAO.queryPartyRoleById(roleTypeId);
    }

    @Override
    public PartyRole queryPartyRoleByPartyId(String partyId) {
        return partyRoleDAO.queryPartyRoleByPartyId(partyId);
    }
}
